mod sub;
mod entity;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
    tauri::Builder::default()
        .plugin(tauri_plugin_dialog::init())
        .plugin(tauri_plugin_shell::init())
        .invoke_handler(tauri::generate_handler![sub::commands::greet, 
             sub::commands::open_file, 
             sub::commands::open_confirm,
             sub::commands::create_table,
             sub::commands::add_user,
             sub::commands::query_user_page,
             sub::commands::drop_table
              ])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

